package com.example.baseproject.main.api;

import androidx.annotation.NonNull;

import com.hjq.http.annotation.HttpHeader;
import com.hjq.http.annotation.HttpRename;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestServer;
import com.hjq.http.config.IRequestType;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author jiangKunKun
 * @CreateDate 2025/3/9
 * @Description
 * @SpittingGrooves
 */
@Data
@Accessors(chain = true)
public class PedalApi implements IRequestApi, IRequestType, IRequestServer {
    @NonNull
    @Override
    public String getApi() {
        return "xgDevice/getDeviceByPedal";
    }

    @HttpRename("shedId")
    private String shedId;

    @HttpHeader()
    private String authType = "COLLECT_DEVICE";
    @HttpHeader()
    private String Language = "zh_CN";
    @HttpHeader()
    private String collectToken = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI3NWJiMzQ4ZC1kNGVhLTQzYjItODM0My01ZjdmMzA4MDgzODciLCJpc3MiOiJTR1JfQ0xPVUQiLCJzdWIiOiJQZXJpcGhlcmFscyIsInVzZXJJZCI6MTg5NzE4MjQzNDM0NTA5NTE3MCwiaWF0IjoxNzQxNDg1MDM5fQ.P9ykZMY3OD_HTbrI4tj1WZY7iGpJnfiCpKbmfwxafYM";

    @NonNull
    @Override
    public String getHost() {
        return "http://192.168.6.107:8080/";
    }
}
